<?php

include_once("./_common.php");

$result;

if (!$member[mb_id]) {
    $result = "error";
} else {
    $row = sql_fetch(" select * from $g4[write_prefix]$bo_table where wr_id = \"$wr_id\" ");
    if($member[mb_id] == $row[mb_id]) {
        sql_query(" update $g4[write_prefix]$bo_table set wr_link2 = 'complete' where wr_id = \"$wr_id\" ");
        $result = "success";
    } else {
        $result = "error";
    }
}

echo $result;
?>